<!--
 * @Author       : ionluo(2437403125@qq.com)
 * @Description  :
 * @Date         : 2024-05-11 22:56:57
-->

<template>
  <div class="total-sales">
    <common-card title="累计销售额" value="￥32,039,165">
      <template>
        <div class="compare-wrapper">
          <div class="compare">
            <span>日同比</span>
            <span class="emphasis">7.33%</span>
            <span class="increase"></span>
          </div>
          <div class="compare">
            <span>月同比</span>
            <span class="emphasis">38.79%</span>
            <span class="decrease"></span>
          </div>
        </div>
      </template>
      <template v-slot:footer>
        <span>昨日销售额</span>
        <span class="emphasis">￥ 30,000,000</span>
      </template>
    </common-card>
  </div>
</template>

<script>
import commonCardMixins from '@//mixins/commonCardMixins'

export default {
  name: 'TotalSales',
  mixins: [commonCardMixins],
  data () {
    return {

    }
  }
}
</script>

<style lang="scss" scoped>
.compare-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  .compare {
    // display: flex;
    // align-items: center;
    // background: yellow;
    font-size: 12px;
    margin-top: 3px;
    color: #666;
  }
}
</style>
